import request from "@/utils/axios";

// 获取客户列表
export function GetCustomerPage(data) {
  return request.post("/support-backend/customer/page", data);
}

// 获取客户详情
export function GetCustomerDetail(params) {
  return request.get("/support-backend/customer/detail", { params });
}

// 新增客户
export function AddCustomer(data) {
  return request.post("/support-backend/customer/add", data);
}

// 编辑客户
export function UpdateCustomer(data) {
  return request.post("/support-backend/customer/update", data);
}

// 客户状态 启用/禁用
export function StatusEnableChange(data) {
  return request.post("/support-backend/customer/enable", data);
}

//上传文件
export function FileUpload(data) {
  return request.post("/assets-ms/file/upload", data, { headers: { "Content-Type": "multipart/form-data" } });
}
//B端获取数据字典
export function DictListChildrenByDictCode(params) {
  return request.get("/support-backend/dict/listChildrenByDictCode", { params });
}
// B端批量获取数据字典
export function DictListChildrenByDictCodes(params) {
  return request.get("/support-backend/dict/listChildrenByDictCodes", { params });
}
//获取验证码
export function SendVerificationCode(params) {
  return request.get("/support-backend/customer/sendVerificationCode", { params });
}
//验证营业执照
export function EsignLincense(data) {
  return request.post("/third-backend/esign-ocr/lincense", data);
}
//身份证识别
export function EsignIdCard(data) {
  return request.post("/third-backend/esign-ocr/idcard", data);
}
//列表详情
export function CustomerDetail(params) {
  return request.get("/support-backend/customer/detail", { params });
}
//续费

export function CustomerRenew(data) {
  return request.post("/support-backend/customer/renew", data);
}

//停用
export function CustomerEnable(data) {
  return request.post("/support-backend/customer/enable", data);
}
//续费记录
export function CustomerRenewList(params) {
  return request.get("/support-backend/customer/renew/list", { params });
}
//应用记录
export function CustomerAppList(params) {
  return request.get("/support-backend/customer/app/list", { params });
}
//运营模式
export function ModeList(data) {
  return request.post("/auth-backend/mode/list", data);
}
//经营类目
export function CategoryList(data) {
  return request.post("/product-backend/category/page", data);
}
